package com.bluesky.plum.validate.annotation.parameter;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.bluesky.plum.validate.validator.ValidatorType;

/*
 * this annotation provide a common way to describe any kinds of validator, with 4 parameters.
 * one fits all, and a bit too long.
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
public @interface GeneralValidation {
	ValidatorType type();

	String p1() default "";

	String p2() default "";

	String p3() default "";

	String p4() default "";
}
